package routers

import (
	beego "github.com/beego/beego/v2/server/web"
	"user/controllers"
)

func init() {
	//登陆路由
	beego.Router("/login", &controllers.LoginController{}, "post:Login")
	//一对一聊天路由
	beego.Router("/chat", &controllers.ChatController{}, "get:Chat")
	//文件上传
	beego.Router("/file", &controllers.FileController{}, "post:File")
}
